<html>
<head>
<title>添加服务管理</title>
{% include "systy.html" %}
</head>
<body>
{% ifnotequal username None%}
{% include "head6.html" %}
<div class="taskadd_div">
    <div class="location_div">位置：系统管理 >> 添加服务管理 </div>
    <form action="" method="post">
    <div class="input-group">
        <span class="input-group-addon">&nbsp;&nbsp;&nbsp;服务名</span><input type="text" name="mname"" class="taskadd_taskname form-control">
    </div></br>
    <div class="input-group">
        <span class="input-group-addon">启动命令</span><input type="text" name="mstart" class="taskadd_taskname form-control">
    </div></br>
    <div class="input-group">
        <span class="input-group-addon">重启命令</span><input type="password" name="mrestart" class="taskadd_taskname form-control">
    </div></br>
    <div class="input-group">
        <span class="input-group-addon">停止命令</span><input type="text" name="mstop" class="taskadd_taskname form-control">
    </div></br>
    <div class="config_div">
        <button type="submit" class="btn btn-primary btn-sm hostadd_button"> 添 加 </button>
    </div>
    </form>
    <div class="mytable ms_addmserver_div1">
    <table>
        <thead>
            <tr>
                <td width="120"> 服务名</td>
                <td width="350">启动命令</td>
                <td width="350">重启命令</td>
                <td width="350">停止命令</td>
                <td width="100">操作</td>
            </tr>
        </thead>
        {% for i in server_list %}
        <tr>
            <td width="120">{{ i }}</td>
            <td width="350">{{ i.Mstart }}</td>
            <td width="350">{{ i.Mrestart }}</td>
            <td width="350">{{ i.Mstop }}</td>
            <td width="100" class="taskinfo_td host_buttom"><a class="btn btn-danger btn-xs" href="/mserverdel/{{ i.id }}.html" onClick="delcfm()">删除</a></td>
        </tr>
        {% endfor %}
    </table>
    
    </div>
</div>
{% else %}
你无权访问，请<a href="/login.html">登陆!</a>
{% endifnotequal%}

</body>
</html>
